'use strict';

const { name } = require('ejs');

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up (queryInterface, Sequelize) {
    await queryInterface.bulkInsert('categories',[{
      name:"Web开发",
      rank:1,
      createdAt:new Date(),updatedAt:new Date()
    },
    {
      name:"CAD制图",
      rank:2,
      createdAt:new Date(),updatedAt:new Date()
    },{
      name:"数据库管理",
      rank:3,
      createdAt:new Date(),updatedAt:new Date()
    },{
      name:"算法研究",
      rank:4,
      createdAt:new Date(),updatedAt:new Date()
    },
    {
      name:"数据分析",
      rank:5,
      createdAt:new Date(),updatedAt:new Date()
    },
    {
      name:"人工智能",
      rank:6,
      createdAt:new Date(),updatedAt:new Date()
    },
    {
      name:"网络安全",
      rank:7,
      createdAt:new Date(),updatedAt:new Date()
    },
    {
      name:"运维",
      rank:8,
      createdAt:new Date(),updatedAt:new Date()
    },
    {
      name:"超星代刷",
      rank:9,
      createdAt:new Date(),updatedAt:new Date()
    },
    {
      name:"思博特代刷",
      rank:10,
      createdAt:new Date(),updatedAt:new Date()
    }
  ])
  },

  async down (queryInterface, Sequelize) {
    await queryInterface.bulkDelete('categories', null, {});
  }
};
